

/*
function main( json, ui, hh ) {
	
	if( null == json ) throw new Exception("param json is null!");
	
	return createAccount( json );
	
}

function createAccount( p ) {
	
	 var a = new AccountEntity();
	 
     p.copyTo( a );
     	  
	 EntityManager.createAccount( a );
	 
	 return a; 
}
*/


function main( json, ui, hh ) {

	var a = new AccountEntity();
	 
	a.id = "guest";
	a.passwd = "guest";
	a.tenant = "DEVELOP";
	a.jsonRoles = "[ 'administrator' ]";
	
	 EntityManager.createAccount( a );
	 
	 return a; 
	
	
}


